package com.rickpan.dto.chat;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 聊天消息DTO
 */
@Data
public class ChatMessageDTO {
    private Long id;
    private Long sessionId;
    private String role; // user, assistant
    private String content;
    private Integer tokenCount;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;
}
